from django.http import HttpResponse
import random

from django.views.decorators.cache import cache_page

@cache_page(100)
def cache_view(request):
    data = random.randint(0,99999)
    return HttpResponse(data)